/**
 * $Revision: 1.0 $
 * $Author: Geln Yang $
 * $Date: Jul 10, 2009 7:23:56 AM $
 *
 * Author: Eric Yang
 * Date  : Jul 10, 2009 7:23:56 AM
 *
 */
package c4j.string;

import java.io.UnsupportedEncodingException;

/**
 * @author Eric Yang
 * @version 1.0
 */
public class TestString {
	public static void main(String[] args) throws UnsupportedEncodingException {
		String s = "一二三十五六七八九十一二三四五";
		byte[] bytes = s.getBytes();
		System.out.println(bytes.length);
		byte[] bytes2 = s.getBytes("utf-8");
		System.out.println(bytes2.length);
		byte[] bytes3 = s.getBytes("BIG5");
		System.out.println(bytes3.length);
		System.out.println(s.substring(0, 2));
	}
}
